﻿using AuthCenter.Api.Write.Application.Command.Apply;
using AuthCenter.Api.Write.Application.Command.Menu;
using AuthCenter.Api.Write.Application.Command.Role;
using AuthCenter.Api.Write.Application.Command.RoleMenu;
using AuthCenter.Api.Write.Application.Command.User;
using AuthCenter.Domain;
using AutoMapper;

namespace AuthCenter.Api.Write
{
    public class AutoMapperFail:Profile
    {
        public AutoMapperFail()
        {
            CreateMap<AddUserCommand, UserModel>();
            CreateMap<UpdateUserCommand, UserModel>();

            CreateMap<AddRoleCommand, RoleModel>();
            CreateMap<UpdateRoleCommand, RoleModel>();


            CreateMap<AddMenuCommand, MenuModel>();
            CreateMap<UpdateMenuCommand, MenuModel>();

            CreateMap<AddRoleMenuCommand, RoleMenuModel>();

            CreateMap<AddApplyCommand, ApplyModel>();
            CreateMap<UpdateApplyCommand, ApplyModel>();
            CreateMap<UpdateApplyStatusCommand, ApplyModel>();
        }
    }
}
